package top.zk123.chain.bean;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 颁发机构表
 */
@Entity
@Table(name = "institution")
public class Institution {
    // 用户名
    @Id
    private String institutionId;

    private String password;
    // 机构名称
    private String nickname;
    // 机构徽章
    private String avatar;


    public String getPermission() {
        String permission = "admin";
        return permission;
    }

    public Institution() {
    }

    public Institution(String institutionId, String password) {
        this.institutionId = institutionId;
        this.password = password;
    }

    public String getInstitutionId() {
        return institutionId;
    }

    public void setInstitutionId(String institutionId) {
        this.institutionId = institutionId;
    }

    public String getRole() {
        return "admin";
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

}
